package com.amos.teaching_aids.model;

import com.amos.teaching_aids.model.UserModel.onLoginListener;
import com.amos.teaching_aids.net.STJsonQuery;
import com.amos.teaching_aids.net.STNetTask;

import java.util.Map;

/**
 * Created by Administrator on 2016/10/8 0008.
 */

public interface IUserModel {
    void login(String url, String id, String pass, String identity, UserModel.onLoginListener listener,
               STNetTask.BeforeQueryHook beforeQueryHook, STNetTask.AfterQueryHook afterQueryHook);
    void register(String url, String id, String pass, String name, String major, String email,
                  String majorClass, String identify, UserModel.onRegListener listener,
                  STNetTask.BeforeQueryHook beforeQueryHook, STNetTask.AfterQueryHook afterQueryHook);
    void logout(String url, String id, String identify, UserModel.onLogoutListener listener,
                STNetTask.BeforeQueryHook beforeQueryHook, STNetTask.AfterQueryHook afterQueryHook);
    String getId();
    String getIdentify();
    Map<String, String> getUserInro();
    void saveRadioCheck(String checked);
    String getRadioCheck();

}
